<?
require_once("conn.php");
//$id=$_REQUEST["id"];
?>
<a href="#" onclick="newRepair()">New</a>
<table border="1">
	<tr>
		<th width="100">ID</th>
		<th width="200">Product</th>
		<th width="50">Qty</th>
		<th width="50">Send Date</th>
		<th width="100">Confirm By</th>
		<th width="150">Confirm Date</th>
	</tr>
<?
	$sql = "SELECT * FROM pch_repair_send ORDER BY id DESC;";
	$query = mysql_query($sql);
	while($row = mysql_fetch_array($query)){
	?>
		<tr>
			<td align="center" width="10"><?=$row["id"]?></td>
			<td width="50"><?=$row["product"]?></td>
			<td align="center" width="8"><?=$row["qty"]?></td>
			<td align="center" width="150"><?=$row["send_date"]?></td>
			<td align="center" width="50"><?=$row["confirm"]?></td>
			<td align="center" width="150"><?=$row["confirm_date"]?></td>
		</tr>
	<?
	}
?>
</table>